home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / clarion.arc / QUICK.HLP (.txt) < prev    next >
Clarion Help  |  1991-07-24  |  29KB  |  463 lines

  1. Generating Program Source
  2.  Language statements appear here 
  3. Compiling Program Source
  4. EMPLOYEE.CLA
  5. 149k Available memory
  6.  pLoading Compiler
  7. Employee Phone Directory
  8. 9/13/89
  9. Show People By Name
  10. Show People By Dept
  11. Print People By Name
  12. Print People By Dept
  13. The CLARION Personal Developer
  14. ASSETS
  15. - Home Inventory
  16. - Club Membership Roster
  17. LIBRARY  - Books, Video Tapes, and Music
  18. MEMOS
  19. - Interoffice Memo Writer
  20. ORDER
  21. - Order Entry System
  22. PHONES
  23. - Personal Telephone Directory
  24. TEACHER  - Grading and Class Organization
  25. TRACKING - Sales Tracking
  26.  QDesign New Application
  27.  :Run
  28. Modify
  29. Create
  30. Options
  31. Import/Export
  32. Tutorial
  33. Update People
  34.   NAME:
  35.   EXT :<<#
  36.   DEPT:
  37.   BLDG:
  38. ! Report Header 
  39. A Page
  40. Header 
  41. Print People By Name
  42.  nNAME
  43. EXT DEPT
  44.  xPEO:NAME
  45.  Group  Header 
  46. E Body 
  47.  <<# 
  48.  "PEO:NAME
  49.  Group  Footer 
  50. A Grand  Totals 
  51. A Page
  52. Footer 
  53.  tPAGE <<#
  54. Body 1:1
  55.  -LIN OVR
  56.      CAP NUM SCR
  57. ! Report Header 
  58. A Page
  59. Header 
  60.   Print People By Dept
  61.  lNAME
  62. EXT DEPT
  63.  xPEO:DEPT
  64.  Group  Header 
  65. E Body 
  66.  <<# 
  67.  "PEO:DEPT
  68.  Group  Footer 
  69. A Grand  Totals 
  70. A Page
  71. Footer 
  72.  vPAGE <<#
  73. Body 1:1
  74.  -LIN OVR
  75.      CAP NUM SCR
  76. Application: EMPLOYEE
  77. Files
  78.      Procedures
  79. MEMORY
  80. MAIN_MENU (Menu) - Main Menu
  81. PEOPLE
  82. SHO_NAME (Table) - Show People By Name
  83. UPD_PEOPLE (Form) - Update People
  84. SHO_DEPT (Table) - Show People By Dept
  85. UPD_PEOPLE (Form) - Update People
  86. RPT_NAME (Report) - Print People By Name
  87. RPT_DEPT (Report) - Print People By Dept
  88. RETURN
  89. Ins to Add
  90. Enter to Change
  91. Del to Delete
  92. The CLARION Personal Developer
  93. ASSETS
  94. - Home Inventory
  95. - Club Membership Roster
  96. EMPLOYEE - Employee Phone Directory
  97. LIBRARY  - Books, Video Tapes, and Music
  98. MEMOS
  99. - Interoffice Memo Writer
  100. ORDER
  101. - Order Entry System
  102. PHONES
  103. - Personal Telephone Directory
  104. TEACHER  - Grading and Class Organization
  105. TRACKING - Sales Tracking
  106.  QRun Selected Application
  107.  8Run
  108. Modify
  109. Create
  110. Options
  111. Import/Export
  112. Tutorial
  113.   Use Quick Start?:Yes  Yes No  
  114. Quick Start
  115.   Application:
  116.   Description:
  117.   Filename
  118.   Fields
  119.      Type
  120. Picture
  121. Character
  122. Numeric
  123. Yes - Unique
  124. Yes - Non-Unique
  125.  Total Digits  : 0
  126.  Decimal Digits:
  127.  Picture
  128.  Subtotal Field:No
  129. Yes No 
  130.  Total Field
  131. Yes No 
  132.   Ready:Yes  Yes No  
  133. Employee Phone Directory
  134. mm/dd/yy
  135. Show People By Name
  136. Show People By Dept
  137. Print People By Name
  138. Print People By Dept
  139. Show People By Name
  140. LOCATE:
  141.  <<# 
  142. Ins to Add
  143. Enter to Change
  144. Del to Delete
  145. Ctrl-Esc to Exit
  146. Show People By Dept
  147.  "<<#" is a representation of how a @n3 picture will 
  148.  appear on a screen or a report.  "<" symbolizes a
  149.  numeric digit with leading zeros blanked.  "#"
  150.  symbolizes a numeric digit with zero displayed.
  151.  Personal Developer provides two methods of creating
  152.  applications: the Quick Start method and the Custom method. 
  153.  This tutorial will show you how to use Quick Start.  The
  154.  steps in this tutorial match closely the tutorial you will  
  155.  find in Chapter Two of your user's manual.
  156.  Quick Start is a fast way to create a simple application.
  157.  In only a few minutes you can create a complete running
  158.  application.  In some cases, Quick Start will be all that
  159.  you need to accomplish your goals.  Or, you can use Quick
  160.  Start to get started quickly, then expand your application  
  161.  using the Custom method.
  162.  The "Picture area" is where we define the way this field 
  163.  is to appear.  In the case of a character field, all we  
  164.  need to specify is the number of characters (or field
  165.  "length").  In our example, we want the NAME field to
  166.  be 20 characters in length.  So here we type "20" and
  167.  then press Enter.
  168.  Next, the Key Selection window appears.  Our
  169.  application requires that the NAME field be a  
  170.  key for the PEOPLE file, and in this case, we  
  171.  would like to be sure that no employee appears 
  172.  in the file more than once.  Therefore, we
  173.  must define the NAME field to be a "unique"
  174.  key.  We use Cursor down to select
  175.  "Yes - Unique" and then press Enter.
  176.  Now that we've completed defining the NAME field, let's
  177.  define the EXT field.  We begin by typing the name of the 
  178.  field, "EXT", and then pressing Enter.
  179.  Once again, the Field-type Selection window appears.  We would like the EXT  
  180.  field to be "Numeric".  A numeric field is made up exclusively of numeric
  181.  digits ("0" through "9").  A numeric field can contain up to fifteen digits. 
  182.  We use the Cursor down key to select "Numeric" and then press Enter.
  183.  Since we chose "Numeric" as the 
  184.  type for the EXT field, the
  185.  Numeric Picture window appears. 
  186.  At the "Total Digits:" line we  
  187.  specify the total number of
  188.  digits (up to 15) the EXT field 
  189.  is allowed to have.  Since our  
  190.  phone extensions have 3 digits, 
  191.  we type 3 and press Enter.
  192.  The "Decimal Digits:" line is where we can specify how
  193.  many digits are to the right of the decimal point in our 
  194.  number.  (Money numbers usually have 2 decimal digits.)  
  195.  Our phone extension has no decimal digits, so here we
  196.  simply press Enter and bypass this line.
  197.  The "Picture:" line allows us additional control over how our number is to  
  198.  look when it appears on a screen or in a report. The symbol "@n3" is a
  199.  "picture token".  Picture tokens describe how a number is to be "formatted".
  200.  The "@" simply begins the picture.  The "n" means that this is a numeric
  201.  picture.  The "3" means that there are three numeric positions.  The number 
  202.  will be "justified" to the right, and leading zeros will show as spaces.
  203.  The number "2" will be formatted by the "@n3" picture to appear as "  2"
  204.  (space space 2).  We will press Enter to accept this default picture.
  205.  The "Subtotal Field:" line and
  206.  the "Total Field:" line are used 
  207.  to specify that a field is to be 
  208.  totalled in printed reports.  In 
  209.  our example, phone extensions
  210.  would not need to be totalled,
  211.  so we will answer "No" to both
  212.  lines.  We simply press Enter
  213.  twice and complete the Numeric
  214.  Picture window.
  215.  Once again, we see the Key Selection window.
  216.  In our example, we choose not to make EXT a key 
  217.  (we can always change it to be a key later), so 
  218.  we press Enter to select "No".
  219.  Next, we'll define the DEPT field.  We type 'DEPT' 
  220.  and then press Enter.
  221.  We are going to show you how to create a simple program:
  222.  an employee phone directory which we will call EMPLOYEE.
  223.  The EMPLOYEE application will build and maintain a data
  224.  file called PEOPLE.  The application will contain six
  225.  procedures: a menu, two tables, a form, and two reports.
  226.  We begin the Quick Start process by pressing Enter at the  
  227.  [Create] option on Personal Developer's Base window.
  228.  DEPT, the employee's department, is a character field, so 
  229.  we press Enter to select "Character".
  230.  For our purposes in this example, ten characters should 
  231.  be a sufficient length for the DEPT field.
  232.  The Key Selection window appears.  Since we
  233.  want to create a table that displays a roster
  234.  of each department, the DEPT field will be a
  235.  key.  So, using the Cursor down key to select
  236.  "Yes - Non-Unique" to make the DEPT field a key 
  237.  field.  We make this key "non-unique" because
  238.  more than one record will have the same
  239.  department.
  240.  Now, finally, we create the BLDG field (the 
  241.  building in which the employee works).  We  
  242.  type 'BLDG' and then press Enter.
  243.  BLDG is a character field, so we press Enter to 
  244.  select 'Character'.
  245.  Ten characters should be an adequate length for 
  246.  the BLDG field.  We type '10' and press Enter.  
  247.  At this time our needs do not require ordering 
  248.  the employees by the building in which they
  249.  work, so we will not designate BLDG as a key.  
  250.  We select "No" by pressing Enter.
  251.  At this point we have now defined all of the fields for the 
  252.  PEOPLE file and we have indicated which fields are to be
  253.  keys.  We inform Personal Developer that we are through
  254.  defining keys by pressing Enter on a blank Fields line.
  255.  The Ready window appears.  Personal Developer wants to know 
  256.  if we are ready to create this application.  We are, so we  
  257.  select "Yes" by pressing Enter.
  258.  After generating the basic design of our program, the 
  259.  Application Summary window appears and displays a
  260.  schematic of the files and procedures.
  261.  When you select the Create option, the Quick Start option window appears and 
  262.  asks you if you want to use Quick Start.
  263.  To bypass Quick Start, press the Right arrow key to select [No], and then
  264.  press Enter.  To choose Quick Start, press Enter with [Yes] selected.
  265.  The program begins with MAIN_MENU, 
  266.  a menu procedure that is also the  
  267.  "base procedure".
  268.  MAIN_MENU will offer a choice of
  269.  five menu items.  Each menu item
  270.  correlates to a procedure that
  271.  will be called if that item is
  272.  picked.  SHO_NAME and SHO_DEPT are 
  273.  table procedures.  RPT_NAME and
  274.  RPT_DEPT are report procedures.
  275.  RETURN will end the program.
  276.  Both SHO_NAME and SHO_DEPT name 
  277.  UPD_PEOPLE as an "update
  278.  procedure".  The tables provide 
  279.  two ways of locating employees. 
  280.  SHO_NAME displays a scrolling
  281.  list of employees in name order.
  282.  SHO_DEPT displays a similar
  283.  list in department sequence.
  284.  UPD_PEOPLE is a form procedure  
  285.  used to add, revise, or delete  
  286.  employee records and it can be  
  287.  called from either table.
  288.  We are now in the "Modify" option of Personal Developer.  We could  
  289.  make changes or enhancements to our basic design.  To go with what  
  290.  we have, the next step is to actually generate the application from 
  291.  the basic design.  To perform this step, we must first leave Modify 
  292.  and return to the Base window of Personal.  We do this by pressing  
  293.  [Ctrl-Enter].  Hold down the [Ctrl] key and press [Enter].
  294.  We now see that our new application, EMPLOYEE, has joined  
  295.  the list of applications that are found in this directory. 
  296.  With the application selector on the EMPLOYEE line, and
  297.  the option selector on "Run", we are ready to create our
  298.  finished application by simply pressing Enter.
  299.  First, Personal Developer generates Clarion language source 
  300.  statements for the application.
  301.  Next, Personal Developer compiles the program statements into a 
  302.  file called "EMPLOYEE.RUN", the running version of our program. 
  303.  When the compiling step completes, Personal Developer runs 
  304.  the finished application.  The creation/compilation steps  
  305.  will only occur when Personal Developer senses that you
  306.  have worked on the design of your program using the Modify 
  307.  option.
  308.  The first time you run the program, select "Show People by Name."  The 
  309.  table will appear and then immediately the "Update People" form will
  310.  appear.  This is because the PEOPLE data file has no records as yet.
  311.  The SHO_NAME table procedure senses this and automatically calls the
  312.  update procedure UPD_PEOPLE in "add a record" mode.
  313.  After entering a record, we see that the table now shows one employee. 
  314.  Pressing enter will select this employee.  If we press the [Ins] key,  
  315.  the SHO_NAME procedure will again call the UPD_PEOPLE procedure in
  316.  "Add a record" mode.  In this manner, we can add data to our file.
  317.  We can continue to enter records.  This table shows the
  318.  records ordered by name, so as each record is added it will  
  319.  appear in the table in its proper place.
  320.  The blinking cursor on this screen is a "locator" field.  A  
  321.  locator allows you to type the first few characters of a key 
  322.  field.  As each letter is typed, the selector bar will
  323.  position automatically on the nearest matching record.  Just 
  324.  one more fantastic Personal Developer feature.
  325.  The Quick Start window appears.  This is where you will name  
  326.  your application and its filename, fields, and keys.
  327.  We want to name this application EMPLOYEE, therefore, we type 
  328.  "EMPLOYEE" on the [Application:] line and then press Enter.
  329.  You've just seen how fast and easy it is to create a running 
  330.  application using Quick Start.  You will find this same
  331.  tutorial in Chapter Two of your user's manual, along with
  332.  additional information about "totals" and "subtotals".
  333.  We encourage you to actually follow the steps described in
  334.  this tutorial.  Create your own running version of the
  335.  EMPLOYEE application and then run the program.  Add a number 
  336.  of records to the PEOPLE file.  Revise and delete some
  337.  records as well.  If you have a printer, try printing the
  338.  reports.  If you feel ready, try adding something to the
  339.  application using the Modify option.
  340.  This completes the Quick Start tutorial.
  341.  Notice that an extension of ".APP" is automatically supplied 
  342.  for you.
  343.  The [Description:] line is an optional field for describing  
  344.  the application.  Here we enter "Employee Phone Directory"
  345.  and then press Enter.
  346.  The [Filename:] line is used to name the data file to be  
  347.  used in the application.  Using the Quick Start method,
  348.  you can create one file per application.  The file in our 
  349.  example is PEOPLE, so we simply type "PEOPLE" and press
  350.  Enter.
  351.  Using the Quick Start method, our data file can
  352.  contain up to ten fields.  (We can add additional
  353.  fields later using the Custom Method if needed.)
  354.  Note that a three-letter "prefix" has been attached 
  355.  to the beginning of each field name that will be
  356.  defined.  The prefix is the first three letters of  
  357.  the filename.  Prefixes help identify the file that 
  358.  the field belongs to.
  359.  For the EMPLOYEE application, we will create four
  360.  fields: the NAME field, the EXT field (phone
  361.  extension), the DEPT field, and the BLDG field
  362.  (building).
  363.  First we type "NAME" in the [Fields] area and then  
  364.  press Enter.
  365.  Next, the Field-type Selection window appears.  This is where we will define 
  366.  the type of the field that we just named.  A "Character" type field is an
  367.  item of data comprised of a sequence of characters (letters, numbers, spaces,
  368.  etc.).  We want NAME to be a character field, so we press Enter.
  369. Show People By Name
  370. LOCATE:
  371. Ins to Add
  372. Enter to Change
  373. Del to Delete
  374. Ctrl-Esc to Exit
  375. The CLARION Personal Developer
  376. Options
  377.   Directory Name
  378. :C:\PCLARION\TUTOR\
  379.   Create Listings
  380. Yes  No
  381.   Set Keyboard Locks
  382. Yes  No
  383.   Enhanced Keyboard
  384. Yes  No
  385.   Set Quick Start Colors:No
  386. Yes  No
  387.   Display Description
  388. Yes  No
  389.   Display Sign-on Screen:No
  390. Yes  No
  391.   Press F1 for Help
  392. Update People
  393. Record will be Added
  394.   NAME:
  395.   EXT :  0
  396.   DEPT:
  397.   BLDG:
  398. BLACK   
  399. BLINK   a
  400. COMPILER
  401. GRAY    2
  402. LOADING 
  403. MAIN_MEN
  404. QUICK1  
  405. QUICK10 }
  406. QUICK11 
  407. QUICK12 
  408. QUICK13 
  409. QUICK14 '
  410. QUICK2  
  411. QUICK3  }
  412. QUICK4  .
  413. QUICK5  
  414. QUICK6  
  415. QUICK7  
  416. QUICK8  :
  417. QUICK9  k
  418. QUICK9A >#
  419. QUIK_17Aj#
  420. QUIK_W1 
  421. QUIK_W10
  422. QUIK_W11N)
  423. QUIK_W12O+
  424. QUIK_W13=,
  425. QUIK_W14
  426. QUIK_W15
  427. QUIK_W1611
  428. QUIK_W17]4
  429. QUIK_W18b6
  430. QUIK_W19q7
  431. QUIK_W2 
  432. QUIK_W20
  433. QUIK_W21
  434. QUIK_W22U;
  435. QUIK_W23R=
  436. QUIK_W24
  437. QUIK_W25
  438. QUIK_W26@?
  439. QUIK_W27H@
  440. QUIK_W28
  441. QUIK_W29|B
  442. QUIK_W3 [C
  443. QUIK_W30
  444. QUIK_W31vH
  445. QUIK_W32
  446. QUIK_W33
  447. QUIK_W34
  448. QUIK_W35BP
  449. QUIK_W36
  450. QUIK_W37tR
  451. QUIK_W38NT
  452. QUIK_W39
  453. QUIK_W4 0X
  454. QUIK_W40
  455. QUIK_W5 
  456. QUIK_W6 t^
  457. QUIK_W7 
  458. QUIK_W8 
  459. QUIK_W9 `c
  460. SHO_NAME
  461. TEMP    >h
  462. UPD_PEOP
  463.